<?php
/**
 * Created by PhpStorm.
 * User: sqq
 * Date: 2018/06/06
 * Time: 上午12:00
 */

class ScNoticeShop extends Eloquent
{
    protected $table = "sc_notice_shop";

    /**
     * @Author:      sqq
     * @DateTime:    2018-06-06
     * @Description: 查询优惠活动关联门店
     */
    public static function ActivityShop($activity_id){
        $shop = ScNoticeShop::where("activity_base_id",$activity_id)->where("status","1")->get()->toArray();
        return $shop;
    }

    /**
     * @Author:      sqq
     * @DateTime:    2018-06-06
     * @Description: 查询活动包关联门店
     */
    public static function ProductShop($activity_id){
        $shop = ScNoticeShop::where("activity_base_id",$activity_id)->where("status","1")->get()->toArray();
        return $shop;
    }
}
